﻿using PicShare.Data;
using PicShare.Server.Controllers;
using PicShare.Server.Models;
using PicShare.Server.Repositories;

namespace PicShare.Server.Factories
{
    public static class ControllerFactory
    {
        public static UsersController CreateUsersController()
        {
            IRepository<User> repository = new UsersRepository(new MongoDbContext<User>());
            return new UsersController(repository);
        }

        public static ImageController CreateImageController()
        {
            IRepository<User> repository = new UsersRepository(new MongoDbContext<User>());
            return new ImageController(repository);
        }
    }
}